package org.sysdance.aplicativo.visao.tela.generica;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

public class Janela extends JFrame {
	
	private static final long serialVersionUID = -9026915301020349313L;
	
	public Janela(final int width,final int height) {
		this.setSize(width, height);
		final Dimension tela = Toolkit.getDefaultToolkit().getScreenSize();
		int x = (int) ((tela.getWidth() -  getWidth()) / 2);
		int y = (int) ((tela.getHeight() - getHeight()) / 2);
		this.setLocation(x, y);
		this.setResizable(false);
	}
}
